Skip to content

Conversation

@calvertdw
Copy link
Member

No description provided.

recorder.setCloseOutputStream(true);
try
{
recorder.flush();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stop already calls flush
image

public boolean isCloseOutputStream()
{
return recorder.isCloseOutputStream();
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

close output stream is only for when you pass one in. we're passing in a file. it's always gonna be false
image
image


long startTime = System.currentTimeMillis();
Frame capturedFrame;
while (!magewellMuxer.isCloseOutputStream() && ((capturedFrame = grabber.grabAtFrameRate()) != null))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, so were we actually using the closeOutputStream variable to signal that we wanted to stop the recording?? 😂

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added back the closed logic, but not using an unrelated internal variable

@calvertdw calvertdw merged commit ab57f2c into develop Apr 7, 2025
2 checks passed
@calvertdw calvertdw deleted the cleanup/remove-output-stream-logic branch April 7, 2025 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants